﻿namespace FFF.Test.Entity.FW.Dto
{
    using System;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using Abp.Application.Services.Dto;
    using Abp.AutoMapper;
    using FFF.Test.Entity.Framework.Dto;
    using FFF.Test.Entity.FW.View;       

	/// <summary>
    /// 用户表展示时候的dto
    /// </summary>
	[AutoMapFrom(typeof(FWUserEntity))] 
    public partial class FWUserDto :  BaseEntityDto<Guid>
    {
		/// <summary>
        /// 用户编码
        /// </summary>
		[Display(Name = "用户编码", Description = "用户编码")]
        [Column("UserCode")]
		[StringLength(128)]
        public string UserCode { get; set; }
        
		/// <summary>
        /// 用户名称
        /// </summary>
		[Display(Name = "用户名称", Description = "用户名称")]
        [Column("UserName")]
		[StringLength(128)]
        public string UserName { get; set; }
        
		/// <summary>
        /// 电子邮件
        /// </summary>
		[Display(Name = "电子邮件", Description = "电子邮件")]
        [Column("UserEmail")]
		[StringLength(128)]
        public string UserEmail { get; set; }
        
		/// <summary>
        /// 办公电话
        /// </summary>
		[Display(Name = "办公电话", Description = "办公电话")]
        [Column("UserOfficePhone")]
		[StringLength(128)]
        public string UserOfficePhone { get; set; }
        
		/// <summary>
        /// 移动电话
        /// </summary>
		[Display(Name = "移动电话", Description = "移动电话")]
        [Column("UserMobilePhone")]
		[StringLength(128)]
        public string UserMobilePhone { get; set; }
        
		/// <summary>
        /// 家庭电话
        /// </summary>
		[Display(Name = "家庭电话", Description = "家庭电话")]
        [Column("UserHomePhone")]
		[StringLength(128)]
        public string UserHomePhone { get; set; }
        
		/// <summary>
        /// 域账号
        /// </summary>
		[Display(Name = "域账号", Description = "域账号")]
        [Column("UserADAccount")]
		[StringLength(128)]
        public string UserADAccount { get; set; }
        
		/// <summary>
        /// 是否禁用
        /// </summary>
		[Display(Name = "是否禁用", Description = "是否禁用")]
        [Column("UserIsDisabeld")]
        public byte? UserIsDisabeld { get; set; }
        
		/// <summary>
        /// 禁用原因
        /// </summary>
		[Display(Name = "禁用原因", Description = "禁用原因")]
        [Column("UserDisabledReason")]
		[StringLength(512)]
        public string UserDisabledReason { get; set; }
        
		/// <summary>
        /// 工号
        /// </summary>
		[Display(Name = "工号", Description = "工号")]
        [Column("UserJobNumber")]
		[StringLength(128)]
        public string UserJobNumber { get; set; }
        
		/// <summary>
        /// 是否用户修改密码
        /// </summary>
		[Display(Name = "是否用户修改密码", Description = "是否用户修改密码")]
        [Column("IsUserChangePWD")]
        public byte? IsUserChangePWD { get; set; }
        
		/// <summary>
        /// 是否锁定
        /// </summary>
		[Display(Name = "是否锁定", Description = "是否锁定")]
        [Column("UserIsLocked")]
        public byte? UserIsLocked { get; set; }
        
		/// <summary>
        /// 锁定时间
        /// </summary>
		[Display(Name = "锁定时间", Description = "锁定时间")]
        [Column("UserLockTime")]
        public DateTime? UserLockTime { get; set; }
        
		/// <summary>
        /// 职务
        /// </summary>
		[Display(Name = "职务", Description = "职务")]
        [Column("PUserosition")]
		[StringLength(128)]
        public string PUserosition { get; set; }
        
		/// <summary>
        /// 是否正式编制
        /// </summary>
		[Display(Name = "是否正式编制", Description = "是否正式编制")]
        [Column("IsFormalEstablishment")]
        public byte? IsFormalEstablishment { get; set; }
        
		/// <summary>
        /// 上次IP地址
        /// </summary>
		[Display(Name = "上次IP地址", Description = "上次IP地址")]
        [Column("LastIpAdress")]
		[StringLength(512)]
        public string LastIpAdress { get; set; }
        
		/// <summary>
        /// 用户图像url(上传图片)
        /// </summary>
		[Display(Name = "用户图像url(上传图片)", Description = "用户图像url(上传图片)")]
        [Column("UserImageUrl")]
		[StringLength(256)]
        public string UserImageUrl { get; set; }
        
		/// <summary>
        /// 原图像url(上传图片)
        /// </summary>
		[Display(Name = "原图像url(上传图片)", Description = "原图像url(上传图片)")]
        [Column("UserPreImageUrl")]
		[StringLength(256)]
        public string UserPreImageUrl { get; set; }
        
		/// <summary>
        /// 登录失败次数
        /// </summary>
		[Display(Name = "登录失败次数", Description = "登录失败次数")]
        [Column("LoginErrorCount")]
        public int? LoginErrorCount { get; set; }
        
		/// <summary>
        /// 上一次登录失败原因
        /// </summary>
		[Display(Name = "上一次登录失败原因", Description = "上一次登录失败原因")]
        [Column("LastLoginErrorTime")]
        public DateTime? LastLoginErrorTime { get; set; }
        
		/// <summary>
        /// 密码修改时间
        /// </summary>
		[Display(Name = "密码修改时间", Description = "密码修改时间")]
        [Column("PasswordModifyTime")]
        public DateTime? PasswordModifyTime { get; set; }
        
		/// <summary>
        /// 登录时间
        /// </summary>
		[Display(Name = "登录时间", Description = "登录时间")]
        [Column("LoginTime")]
        public DateTime? LoginTime { get; set; }
        
		/// <summary>
        /// 用户ID自增长
        /// </summary>
		[Display(Name = "用户ID自增长", Description = "用户ID自增长")]
        [Column("UserIntID")]
        public int? UserIntID { get; set; }
        
		/// <summary>
        /// 用户签名
        /// </summary>
		[Display(Name = "用户签名", Description = "用户签名")]
        [Column("UserSign")]
		[StringLength(256)]
        public string UserSign { get; set; }
        
		/// <summary>
        /// 所属机构GUID(数)
        /// </summary>
		[Display(Name = "所属机构GUID(数)", Description = "所属机构GUID(数)")]
        [Column("BuUnitNewGUIDs")]
		[StringLength(1024)]
        public string BuUnitNewGUIDs { get; set; }
        
		/// <summary>
        /// 是否为租户主账户
        /// </summary>
		[Display(Name = "是否为租户主账户", Description = "是否为租户主账户")]
        [Column("IsMainAccountUser")]
        public byte? IsMainAccountUser { get; set; }
        
		/// <summary>
        /// 请求Token过期时间(分钟)
        /// </summary>
		[Display(Name = "请求Token过期时间(分钟)", Description = "请求Token过期时间(分钟)")]
        [Column("TokenExpiryMinute")]
        public int? TokenExpiryMinute { get; set; }
        
		/// <summary>
        /// 请求Token的角色(,分割)
        /// </summary>
		[Display(Name = "请求Token的角色(,分割)", Description = "请求Token的角色(,分割)")]
        [Column("TokenRoles")]
		[StringLength(1024)]
        public string TokenRoles { get; set; }
        
		/// <summary>
        /// 默认公司GUID
        /// </summary>
		[Display(Name = "默认公司GUID", Description = "默认公司GUID")]
        [Column("DefaultBuUnitGUID")]
        public Guid? DefaultBuUnitGUID { get; set; }
        
		/// <summary>
        /// 默认系统GUID
        /// </summary>
		[Display(Name = "默认系统GUID", Description = "默认系统GUID")]
        [Column("DefaultApplicationGUID")]
        public Guid? DefaultApplicationGUID { get; set; }
        
    }
    
    /// <summary>
    /// 用户表新增时候的dto
    /// </summary>
	[AutoMap(typeof(FWUserEntity))]
    [AutoMapFrom(typeof(ViewFWUser))] 
    public partial class FWUserCreateInputDto : BaseEntityDto<Guid>
    {
		/// <summary>
        /// 用户编码
        /// </summary>
		[Display(Name = "用户编码", Description = "用户编码")]
        [Column("UserCode")]
		[StringLength(128)]
        public string UserCode { get; set; }
        
		/// <summary>
        /// 用户名称
        /// </summary>
		[Display(Name = "用户名称", Description = "用户名称")]
        [Column("UserName")]
		[StringLength(128)]
        public string UserName { get; set; }
        
		/// <summary>
        /// 电子邮件
        /// </summary>
		[Display(Name = "电子邮件", Description = "电子邮件")]
        [Column("UserEmail")]
		[StringLength(128)]
        public string UserEmail { get; set; }
        
		/// <summary>
        /// 办公电话
        /// </summary>
		[Display(Name = "办公电话", Description = "办公电话")]
        [Column("UserOfficePhone")]
		[StringLength(128)]
        public string UserOfficePhone { get; set; }
        
		/// <summary>
        /// 移动电话
        /// </summary>
		[Display(Name = "移动电话", Description = "移动电话")]
        [Column("UserMobilePhone")]
		[StringLength(128)]
        public string UserMobilePhone { get; set; }
        
		/// <summary>
        /// 家庭电话
        /// </summary>
		[Display(Name = "家庭电话", Description = "家庭电话")]
        [Column("UserHomePhone")]
		[StringLength(128)]
        public string UserHomePhone { get; set; }
        
		/// <summary>
        /// 域账号
        /// </summary>
		[Display(Name = "域账号", Description = "域账号")]
        [Column("UserADAccount")]
		[StringLength(128)]
        public string UserADAccount { get; set; }
        
		/// <summary>
        /// 是否禁用
        /// </summary>
		[Display(Name = "是否禁用", Description = "是否禁用")]
        [Column("UserIsDisabeld")]
        public byte? UserIsDisabeld { get; set; }
        
		/// <summary>
        /// 禁用原因
        /// </summary>
		[Display(Name = "禁用原因", Description = "禁用原因")]
        [Column("UserDisabledReason")]
		[StringLength(512)]
        public string UserDisabledReason { get; set; }
        
		/// <summary>
        /// 工号
        /// </summary>
		[Display(Name = "工号", Description = "工号")]
        [Column("UserJobNumber")]
		[StringLength(128)]
        public string UserJobNumber { get; set; }
        
		/// <summary>
        /// 是否用户修改密码
        /// </summary>
		[Display(Name = "是否用户修改密码", Description = "是否用户修改密码")]
        [Column("IsUserChangePWD")]
        public byte? IsUserChangePWD { get; set; }
        
		/// <summary>
        /// 是否锁定
        /// </summary>
		[Display(Name = "是否锁定", Description = "是否锁定")]
        [Column("UserIsLocked")]
        public byte? UserIsLocked { get; set; }
        
		/// <summary>
        /// 锁定时间
        /// </summary>
		[Display(Name = "锁定时间", Description = "锁定时间")]
        [Column("UserLockTime")]
        public DateTime? UserLockTime { get; set; }
        
		/// <summary>
        /// 职务
        /// </summary>
		[Display(Name = "职务", Description = "职务")]
        [Column("PUserosition")]
		[StringLength(128)]
        public string PUserosition { get; set; }
        
		/// <summary>
        /// 是否正式编制
        /// </summary>
		[Display(Name = "是否正式编制", Description = "是否正式编制")]
        [Column("IsFormalEstablishment")]
        public byte? IsFormalEstablishment { get; set; }
        
		/// <summary>
        /// 上次IP地址
        /// </summary>
		[Display(Name = "上次IP地址", Description = "上次IP地址")]
        [Column("LastIpAdress")]
		[StringLength(512)]
        public string LastIpAdress { get; set; }
        
		/// <summary>
        /// 用户图像url(上传图片)
        /// </summary>
		[Display(Name = "用户图像url(上传图片)", Description = "用户图像url(上传图片)")]
        [Column("UserImageUrl")]
		[StringLength(256)]
        public string UserImageUrl { get; set; }
        
		/// <summary>
        /// 原图像url(上传图片)
        /// </summary>
		[Display(Name = "原图像url(上传图片)", Description = "原图像url(上传图片)")]
        [Column("UserPreImageUrl")]
		[StringLength(256)]
        public string UserPreImageUrl { get; set; }
        
		/// <summary>
        /// 登录失败次数
        /// </summary>
		[Display(Name = "登录失败次数", Description = "登录失败次数")]
        [Column("LoginErrorCount")]
        public int? LoginErrorCount { get; set; }
        
		/// <summary>
        /// 上一次登录失败原因
        /// </summary>
		[Display(Name = "上一次登录失败原因", Description = "上一次登录失败原因")]
        [Column("LastLoginErrorTime")]
        public DateTime? LastLoginErrorTime { get; set; }
        
		/// <summary>
        /// 密码修改时间
        /// </summary>
		[Display(Name = "密码修改时间", Description = "密码修改时间")]
        [Column("PasswordModifyTime")]
        public DateTime? PasswordModifyTime { get; set; }
        
		/// <summary>
        /// 登录时间
        /// </summary>
		[Display(Name = "登录时间", Description = "登录时间")]
        [Column("LoginTime")]
        public DateTime? LoginTime { get; set; }
        
		/// <summary>
        /// 用户ID自增长
        /// </summary>
		[Display(Name = "用户ID自增长", Description = "用户ID自增长")]
        [Column("UserIntID")]
        public int? UserIntID { get; set; }
        
		/// <summary>
        /// 用户签名
        /// </summary>
		[Display(Name = "用户签名", Description = "用户签名")]
        [Column("UserSign")]
		[StringLength(256)]
        public string UserSign { get; set; }
        
		/// <summary>
        /// 所属机构GUID(数)
        /// </summary>
		[Display(Name = "所属机构GUID(数)", Description = "所属机构GUID(数)")]
        [Column("BuUnitNewGUIDs")]
		[StringLength(1024)]
        public string BuUnitNewGUIDs { get; set; }
        
		/// <summary>
        /// 是否为租户主账户
        /// </summary>
		[Display(Name = "是否为租户主账户", Description = "是否为租户主账户")]
        [Column("IsMainAccountUser")]
        public byte? IsMainAccountUser { get; set; }
        
		/// <summary>
        /// 请求Token过期时间(分钟)
        /// </summary>
		[Display(Name = "请求Token过期时间(分钟)", Description = "请求Token过期时间(分钟)")]
        [Column("TokenExpiryMinute")]
        public int? TokenExpiryMinute { get; set; }
        
		/// <summary>
        /// 请求Token的角色(,分割)
        /// </summary>
		[Display(Name = "请求Token的角色(,分割)", Description = "请求Token的角色(,分割)")]
        [Column("TokenRoles")]
		[StringLength(1024)]
        public string TokenRoles { get; set; }
        
		/// <summary>
        /// 默认公司GUID
        /// </summary>
		[Display(Name = "默认公司GUID", Description = "默认公司GUID")]
        [Column("DefaultBuUnitGUID")]
        public Guid? DefaultBuUnitGUID { get; set; }
        
		/// <summary>
        /// 默认系统GUID
        /// </summary>
		[Display(Name = "默认系统GUID", Description = "默认系统GUID")]
        [Column("DefaultApplicationGUID")]
        public Guid? DefaultApplicationGUID { get; set; }
        
    }
     
     /// <summary>
    /// 用户表更新时候Dto
    /// </summary>
	[AutoMap(typeof(FWUserEntity))]
    [AutoMapFrom(typeof(ViewFWUser))] 
    public partial class FWUserUpdateInputDto : BaseEntityDto<Guid>
    {
		/// <summary>
        /// 用户编码
        /// </summary>
		[Display(Name = "用户编码", Description = "用户编码")]
        [Column("UserCode")]
		[StringLength(128)]
        public string UserCode { get; set; }
        
		/// <summary>
        /// 用户名称
        /// </summary>
		[Display(Name = "用户名称", Description = "用户名称")]
        [Column("UserName")]
		[StringLength(128)]
        public string UserName { get; set; }
        
		/// <summary>
        /// 电子邮件
        /// </summary>
		[Display(Name = "电子邮件", Description = "电子邮件")]
        [Column("UserEmail")]
		[StringLength(128)]
        public string UserEmail { get; set; }
        
		/// <summary>
        /// 办公电话
        /// </summary>
		[Display(Name = "办公电话", Description = "办公电话")]
        [Column("UserOfficePhone")]
		[StringLength(128)]
        public string UserOfficePhone { get; set; }
        
		/// <summary>
        /// 移动电话
        /// </summary>
		[Display(Name = "移动电话", Description = "移动电话")]
        [Column("UserMobilePhone")]
		[StringLength(128)]
        public string UserMobilePhone { get; set; }
        
		/// <summary>
        /// 家庭电话
        /// </summary>
		[Display(Name = "家庭电话", Description = "家庭电话")]
        [Column("UserHomePhone")]
		[StringLength(128)]
        public string UserHomePhone { get; set; }
        
		/// <summary>
        /// 域账号
        /// </summary>
		[Display(Name = "域账号", Description = "域账号")]
        [Column("UserADAccount")]
		[StringLength(128)]
        public string UserADAccount { get; set; }
        
		/// <summary>
        /// 是否禁用
        /// </summary>
		[Display(Name = "是否禁用", Description = "是否禁用")]
        [Column("UserIsDisabeld")]
        public byte? UserIsDisabeld { get; set; }
        
		/// <summary>
        /// 禁用原因
        /// </summary>
		[Display(Name = "禁用原因", Description = "禁用原因")]
        [Column("UserDisabledReason")]
		[StringLength(512)]
        public string UserDisabledReason { get; set; }
        
		/// <summary>
        /// 工号
        /// </summary>
		[Display(Name = "工号", Description = "工号")]
        [Column("UserJobNumber")]
		[StringLength(128)]
        public string UserJobNumber { get; set; }
        
		/// <summary>
        /// 是否用户修改密码
        /// </summary>
		[Display(Name = "是否用户修改密码", Description = "是否用户修改密码")]
        [Column("IsUserChangePWD")]
        public byte? IsUserChangePWD { get; set; }
        
		/// <summary>
        /// 是否锁定
        /// </summary>
		[Display(Name = "是否锁定", Description = "是否锁定")]
        [Column("UserIsLocked")]
        public byte? UserIsLocked { get; set; }
        
		/// <summary>
        /// 锁定时间
        /// </summary>
		[Display(Name = "锁定时间", Description = "锁定时间")]
        [Column("UserLockTime")]
        public DateTime? UserLockTime { get; set; }
        
		/// <summary>
        /// 职务
        /// </summary>
		[Display(Name = "职务", Description = "职务")]
        [Column("PUserosition")]
		[StringLength(128)]
        public string PUserosition { get; set; }
        
		/// <summary>
        /// 是否正式编制
        /// </summary>
		[Display(Name = "是否正式编制", Description = "是否正式编制")]
        [Column("IsFormalEstablishment")]
        public byte? IsFormalEstablishment { get; set; }
        
		/// <summary>
        /// 上次IP地址
        /// </summary>
		[Display(Name = "上次IP地址", Description = "上次IP地址")]
        [Column("LastIpAdress")]
		[StringLength(512)]
        public string LastIpAdress { get; set; }
        
		/// <summary>
        /// 用户图像url(上传图片)
        /// </summary>
		[Display(Name = "用户图像url(上传图片)", Description = "用户图像url(上传图片)")]
        [Column("UserImageUrl")]
		[StringLength(256)]
        public string UserImageUrl { get; set; }
        
		/// <summary>
        /// 原图像url(上传图片)
        /// </summary>
		[Display(Name = "原图像url(上传图片)", Description = "原图像url(上传图片)")]
        [Column("UserPreImageUrl")]
		[StringLength(256)]
        public string UserPreImageUrl { get; set; }
        
		/// <summary>
        /// 登录失败次数
        /// </summary>
		[Display(Name = "登录失败次数", Description = "登录失败次数")]
        [Column("LoginErrorCount")]
        public int? LoginErrorCount { get; set; }
        
		/// <summary>
        /// 上一次登录失败原因
        /// </summary>
		[Display(Name = "上一次登录失败原因", Description = "上一次登录失败原因")]
        [Column("LastLoginErrorTime")]
        public DateTime? LastLoginErrorTime { get; set; }
        
		/// <summary>
        /// 密码修改时间
        /// </summary>
		[Display(Name = "密码修改时间", Description = "密码修改时间")]
        [Column("PasswordModifyTime")]
        public DateTime? PasswordModifyTime { get; set; }
        
		/// <summary>
        /// 登录时间
        /// </summary>
		[Display(Name = "登录时间", Description = "登录时间")]
        [Column("LoginTime")]
        public DateTime? LoginTime { get; set; }
        
		/// <summary>
        /// 用户ID自增长
        /// </summary>
		[Display(Name = "用户ID自增长", Description = "用户ID自增长")]
        [Column("UserIntID")]
        public int? UserIntID { get; set; }
        
		/// <summary>
        /// 用户签名
        /// </summary>
		[Display(Name = "用户签名", Description = "用户签名")]
        [Column("UserSign")]
		[StringLength(256)]
        public string UserSign { get; set; }
        
		/// <summary>
        /// 所属机构GUID(数)
        /// </summary>
		[Display(Name = "所属机构GUID(数)", Description = "所属机构GUID(数)")]
        [Column("BuUnitNewGUIDs")]
		[StringLength(1024)]
        public string BuUnitNewGUIDs { get; set; }
        
		/// <summary>
        /// 是否为租户主账户
        /// </summary>
		[Display(Name = "是否为租户主账户", Description = "是否为租户主账户")]
        [Column("IsMainAccountUser")]
        public byte? IsMainAccountUser { get; set; }
        
		/// <summary>
        /// 请求Token过期时间(分钟)
        /// </summary>
		[Display(Name = "请求Token过期时间(分钟)", Description = "请求Token过期时间(分钟)")]
        [Column("TokenExpiryMinute")]
        public int? TokenExpiryMinute { get; set; }
        
		/// <summary>
        /// 请求Token的角色(,分割)
        /// </summary>
		[Display(Name = "请求Token的角色(,分割)", Description = "请求Token的角色(,分割)")]
        [Column("TokenRoles")]
		[StringLength(1024)]
        public string TokenRoles { get; set; }
        
		/// <summary>
        /// 默认公司GUID
        /// </summary>
		[Display(Name = "默认公司GUID", Description = "默认公司GUID")]
        [Column("DefaultBuUnitGUID")]
        public Guid? DefaultBuUnitGUID { get; set; }
        
		/// <summary>
        /// 默认系统GUID
        /// </summary>
		[Display(Name = "默认系统GUID", Description = "默认系统GUID")]
        [Column("DefaultApplicationGUID")]
        public Guid? DefaultApplicationGUID { get; set; }
        
    }
}
